import Vue from 'vue'
import App from './App'
import './store'
Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    pages: [// 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
      'pages/logs/logs',
      '^pages/index/index',
      'pages/goodDetail/goodDetail',
      'pages/classify/classify',
      'pages/market/market',
      'pages/search/search',
      'pages/calc/calc'
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black',
      // 滑动触底距离
      onReachBottomDistance: 1000
    },
    tabBar: {
      color: '#000000',
      selectedColor: '#e66b00',
      list: [
        {
          pagePath: 'pages/index/index',
          text: '首页',
          iconPath: 'static/images/home.png',
          selectedIconPath: 'static/images/home1.png'
        },
        {
          pagePath: 'pages/search/search',
          text: '超级搜索',
          iconPath: 'static/images/search.png',
          selectedIconPath: 'static/images/search1.png'
        },
        {
          pagePath: 'pages/classify/classify',
          text: '分类',
          iconPath: 'static/images/classify.png',
          selectedIconPath: 'static/images/classify1.png'
        }
      ]
    }
  }

}
